import { getAction, putAction, postAction } from '@/api/manage'
import { serviceApi } from '@/api/common.js'
/**
 * 公共API接口
 */
export const api = {

}

/**
 * 添加用户代码
 * @param {*} params
 * @returns
 */
export const addUserAgent = params => postAction(serviceApi.auth + '/users/agents', params);

/**
 * 编辑用户代码
 * @param {*} params
 * @returns
 */
export const editUserAgent = params => putAction(serviceApi.auth + '/users/agents', params);

/**
* 通过userName查询
* @param {*} params
* @returns
*/
export const getByUserName = (userName, params) => getAction(serviceApi.auth + `/users/agents/username/${userName}`, params);
